//
//  ModelOfSecondDetail.m
//  Protect -A
//
//  Created by 付剑英 on 16/6/23.
//  Copyright © 2016年 付剑英. All rights reserved.
//

#import "ModelOfSecondDetail.h"

@implementation ModelOfSecondDetail


#pragma mark - ------------ KVC赋值 ---------------


- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
    if ([key isEqualToString:@"photo"]) {
        
        self.path = value[@"path"];
        self.width = value[@"width"];
        self.height = value[@"height"];
        
        
    }if ([key isEqualToString:@"actor"]) {
        self.username = value[@"username"];
        
        self.avatar = value[@"avatar"];
        
    }
    
    else if ([key isEqualToString:@"sender"]) {
        
        self.username = value[@"username"];
        self.avatar = value[@"avatar"];
        
    }else if ([key isEqualToString:@"album"]) {
        
        self.name = value[@"name"];
        
    }else if ([key isEqualToString:@"item"]){
        
        self.price = value[@"price"];
        
    }else if ([key isEqualToString:@"id"]){
        
        self.iid = value;
        
    }
    
    
    
}
@end
